import axios from './axiosFun';

//登录接口
export const login = (params) => { return axios.post("/login", params) }

//退出登录接口
export const logout = (param) => { return axios.get("/out?userId="+param) }

//注册接口
export const register = (params) => { return axios.post("/register", params) }

//获取个人信息
export const getSelf = (param) => { return axios.get("/user/getSelf?userId=" + param) }

//修改个人信息
export const editSelf = (param1, params) => { return axios.post("/user/editSelf?code=" + param1, params) }


//修改个人密码
export const editPwd = (param1, param2, param3, param4) => {
    return axios.get("/user/editPwd?userId=" + param1 + "&code=" + param2 + "&email=" + param3 + "&pwd=" + param4)
}
